import request from '@/utils/request'

export function getTravelCustomList(params) {
  return request({
    url: '/api/travelCustom/list',
    method: 'get',
    params
  })
}

export function getTravelCustom(id) {
  return request({
    url: `/api/travelCustom/${id}`,
    method: 'get'
  })
}

export function createTravelCustom(data) {
  return request({
    url: '/api/travelCustom',
    method: 'post',
    data
  })
}

export function updateTravelCustom(id, data) {
  return request({
    url: `/api/travelCustom/${id}`,
    method: 'put',
    data
  })
}

export function deleteTravelCustom(id) {
  return request({
    url: `/api/travelCustom/${id}`,
    method: 'delete'
  })
}

export function updateTravelCustomStatus(id, data) {
  return request({
    url: `/api/travelCustom/${id}/status`,
    method: 'post',
    data
  })
}

export function uploadTravelCustomPlan(id, data) {
  return request({
    url: `/api/travelCustom/${id}/plan`,
    method: 'post',
    data
  })
} 